#include <iostream>

using namespace std;

void pn()
{
	char c;
	cin >> c;
	if(c!='!') {
		pn();
		cout << c;
	}
}

int main()
{
	pn();
	return 0;
}
